Within the store, split the persistent information regarding a VM from the
authoremellor@ewan <emellor@ewan>
Fri, 30 Sep 2005 12:41:10 +0000 (13:41 +0100)
committeremellor@ewan <emellor@ewan>
Fri, 30 Sep 2005 12:41:10 +0000 (13:41 +0100)
commitd9346790921fd379e696671d1147f5458596cf8d
tree2b0735d3e5180ece309370a62cc42e1003bedb70
parent8d170a29890ec7eb6ac2c28cce5fe6ffcb359164
Within the store, split the persistent information regarding a VM from the
transient information regarding a domain.  This allows live localhost migration,
which is important for testing migration, and also allows migration when we
have a distributed store.  The backend paths in the store now refer to the
frontend domain ID, not its UUID, and blktap has changed to match.

To support this split in the information, the cleanup procedure has been split
to match.

Change the save-restore interface between XendDomain, XendDomainInfo, and
XendCheckpoint, to remove some intermingling, in particular taking XendDomain
out of the loop for the restore procedure.

Improved the recovery procedure to avoid trying to destroy dom0 when recovering.

Added a lock around XendDomain.refresh and one around
XendDomainInfo.refreshShutdown, to improve the behaviour when recreating
domains at startup.  There are still races here, so more thought needs to be
given to the locking.

Live reconfiguration of an existing domain is temporarily broken.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/blktap/xenbus.c
tools/python/xen/xend/XendCheckpoint.py
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/server/DevController.py